package com.cx.bank.handler;

import com.cx.bank.dao.BankDaoImpl;
import com.cx.bank.dao.BankDaoInterface;
import com.cx.bank.manager.IManager;

import java.sql.SQLException;

/**
 * @author jxau_scf
 * @date 2021/8/4 - 11:16
 */
public class MyHandlerTest {
    public static void main(String[] args) throws SQLException {
        BankDaoInterface bankDao = new BankDaoImpl();
        MyHandler myHandler = new MyHandler();
        myHandler.setTarget(bankDao);
        BankDaoInterface proxy = (BankDaoInterface)myHandler.getProxy();
        boolean aaa = proxy.updateMoney("aaa", 994);
        System.out.println(aaa);


    }
}
